home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / lisp / stk-3.0-b / stk-3 / blt-for-STk-3.0 / configure.in < prev    next >
Encoding:
Text File  |  1995-12-28  |  2.2 KB  |  66 lines

  1. AC_INIT(blt.c)
  2. /bin/rm -f config.cache
  3. CC=${CC-gcc}
  4. AC_HAVE_HEADERS(unistd.h)
  5. AC_HAVE_FUNCS(sigaction)
  6.  
  7. # -----------------------------------------------------------------------
  8. #     Check for strerror, strdup, strcasecmp.
  9. # -----------------------------------------------------------------------
  10. AC_HAVE_FUNCS(strerror strdup strcasecmp)
  11. AC_SIZE_T
  12.  
  13. # -----------------------------------------------------------------------
  14. #
  15. #     Check for header files
  16. #
  17. # -----------------------------------------------------------------------
  18. AC_STDC_HEADERS
  19. AC_HAVE_HEADERS(stdlib.h string.h float.h malloc.h)
  20. AC_HAVE_HEADERS(errno.h unistd.h memory.h limits.h sys/time.h sys/wait.h)
  21. AC_TIME_WITH_SYS_TIME
  22.  
  23.  
  24. LOSSAGE=""
  25. #--------------------------------------------------------------------
  26. #    The check below checks whether <sys/wait.h> defines the type
  27. #    "union wait" correctly.  It's needed because of weirdness in
  28. #    HP-UX where "union wait" is defined in both the BSD and SYS-V
  29. #    environments.  Checking the usability of WIFEXITED seems to do
  30. #    the trick.
  31. #--------------------------------------------------------------------
  32.  
  33. AC_COMPILE_CHECK([union wait], [#include <sys/types.h> 
  34. #include <sys/wait.h>], [
  35. union wait x;
  36. WIFEXITED(x);        /* Generates compiler error if WIFEXITED
  37.              * uses an int. */
  38. ], , [ LOSSAGE="$LOSSAGE -DNO_UNION_WAIT" ])
  39.  
  40. # -----------------------------------------------------------------------
  41. #     Check if postscript prolog can be inlined.
  42. # -----------------------------------------------------------------------
  43. echo "checking if postscript prolog can be inlined"
  44. AC_TEST_PROGRAM([
  45. #include "$PWD/src/bltGrPS.h"
  46. int main() { exit(0); }
  47. ],, [ LOSSAGE="$LOSSAGE -DNO_INLINE_PROLOG" ])
  48.  
  49. AC_SUBST(LOSSAGE)
  50.     
  51. # -----------------------------------------------------------------------
  52. #    tcl.h
  53. # -----------------------------------------------------------------------
  54. echo "checking for tcl.h"
  55. TCLINCDIR="../Tcl"
  56. AC_SUBST(TCLINCSW)
  57.  
  58. # -----------------------------------------------------------------------
  59. #     tk.h
  60. # -----------------------------------------------------------------------
  61. echo "checking for tk.h"
  62. TKINCDIR="../Tk"
  63. AC_SUBST(TKINCSW)
  64.  
  65. AC_OUTPUT(Makefile bltConfig.h blt-1.9/src/Makefile)
  66.